<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>查询酒店</title>
    <link rel="stylesheet" href="../../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/iconfont/iconfont.css">
    <link rel="stylesheet" type="text/css" href="../../../css/index/hotel/date.css">
    <link rel="stylesheet" type="text/css" href="../../../css/index/hotel/filtrate.css">
    <link rel="stylesheet" type="text/css" href="../../../css/index/hotel/index.css">
</head>
<body>
    <header class="aui-bar aui-bar-nav" id="header" style="padding-top:20px;">
        <div class="aui-pull-left aui-btn" onclick="back();">
            <span class="aui-iconfont aui-icon-left"></span>
        </div>
        <div class="aui-title">查询酒店</div>
    </header>

    <!-- <footer class="aui-bar aui-bar-tab" style="font-size:.7rem;line-height:2.25rem;" id="footer">
        <div class="tel">客服电话:0351-8222211</div>
    </footer> -->
</body>
<script src="../../../script/extend/jquery-3.3.1.min.js"></script>
<script src="../../../script/aui/api.js"></script>
<script src="https://api.map.baidu.com/api?v=1.4"></script>
<script type="text/javascript" src="../../../script/common.js"></script>
<script src="../../../script/config.js"></script>
<script>
    apiready = function() {
        api.parseTapmode();

        //设置高度
        var header = $api.byId('header');
        $api.fixStatusBar(header);

        var headerPos = $api.offset(header),
            frameheight = api.winHeight - $api.byId('header').offsetHeight;
        api.openFrame({
            name: 'hotel_search_frm',
            url: './search_frm.html',
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                h: frameheight
            },
            reload : true,
            bgColor: 'rgba(0,0,0,0)',
            vScrollBarEnabled: true,
            hScrollBarEnabled: false,
            pageParam: {
                H: headerPos.h
            }
        });

        //列表页时间选择监听
        api.addEventListener({
            name: 'listFrmTimeEvt'
        }, function(ret, err) {
            location.reload();
        });

        $(".tel").click(function() {
            api.call({
                type: 'tel_prompt',
                number: '0351-8222211'
            });
        });
    }
    function back(){
        delStorage();
        setTimeout(function(){
            api.closeWin();
        },300);
    }
</script>

</html>
